package com.fruit.system.service;

import java.util.List;

import com.fruit.auth.model.User;
import com.fruit.service.BaseService;
import com.fruit.system.model.Menu;
import com.fruit.system.model.NavMenuVO;

public interface MenuService extends BaseService<Menu>
{
	/**
	 * 查询出所有的菜单
	 * @return
	 */
	public List<Menu> findAllMenus();
	/**
	 * 保存菜单的同时保存权限
	 * @param menu
	 */
	public void saveMenu(Menu menu);
	
	/**
	 * 获得用户有权访问的菜单
	 * @param user
	 * @return
	 */
	public List<NavMenuVO> findMenusForUser(User user);

}
